<?php
namespace app\admin\Validate;
use think\Validate;

class ChangeAdmin extends Validate{
    protected $rule=[
        'oldpwd'=>'require',
        'newpwd'=>'require|confirm',
        'newpwd_confirm'=>'require'
    ];
    protected $message=[
        'oldpwd.require'=>'原密码不能为空',
        'newpwd.require'=>'新密码不能为空',
        'newpwd.confirm'=>'两次密码不一致',
        'newpwd.require'=>'重复密码不能为空'
    ];
}